# demo05.py
import requests
url = "https://www.jianshu.com/"
# 设置请求头----让爬虫穿上浏览器的衣服
headers = {"User-Agent": "Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Firefox/68.0"}
r = requests.get(url, headers=headers)
print(r.text)


